
<template>
	<view class="content">
		<nav-header bgColor="bg-custom-color" :isBack="true">
			<block slot="content">{{$t('usdtExtractRecord')}}</block>
		</nav-header>


		<view class="cu-list menu card-menu margin-top wallet">
			<view class="cu-item" @click="$common.toPage('../wallet/wallet_usdt')">
				<view class="content et-content">
					<text class="text-grey et-text lc1-1 bg-color">USDT</text>
				</view>
			</view>
			<view class="lc2-son bg-color1">
				<view class="lc2-son1 lc2-son-par">
					<text class="lc2-son1-text">USDT</text>
					<text class="lc2-son1-text">{{$t('time')}}</text>
				</view>
				<view class="lc2-son2 lc2-son-par" v-for="(item,index) in list">
					<text class="lc2-son2-text text-color">{{item.cashCount}}</text>
					<!-- <text class="lc2-son2-text text-color">0.000</text> -->
					<text class="lc2-son2-text text-color">{{$common.dateFormat(item.addDate)}}</text>
				</view>
			</view>
		</view>
	</view>


</template>

<script>
	let t;
	export default {
		data() {
			return {
				list: [],
				userInfo: null,

			}
		},
		onLoad() {
			t = this;
			this.$i18n.locale = t.$common.localRead("local")
			t.userInfo = $common.getUser();
			console.info(t.userInfo.id)
			t.getData();
		},
		methods: {
			getData() {
				let data = {
					userId: t.userInfo.id,
					cashType: 11,
				}
				t.$fetch.request('userMoneyApply/list', data).then((res) => {
					if (res.code == 200) {
						console.info("获取userMoneyApply/list成功")
						t.list = res.data.entityList
						// $common.setToken(res.data.token)
						// console.info($common.getToken())

						// t.getUserByToken()
					} else {
						$common.showToast(res.msg);
					}
				}).catch((e) => {})
			}
		}
	}
</script>

<style>
	.wallet .cu-item:after {
		border-bottom: 0px solid #ddd;
	}

	.wallet .cu-item {
		background-color: #121E2E;
	}

	.lc2-son-par {
		display: flex;
		height: 30px;
		line-height: 30px;
	}

	.lc2-son1-text {
		color: #5C7392;
		flex: 1;
		text-align: center;
	}

	.lc2-son2-text {
		flex: 1;
		text-align: center;
	}

	.cu-list.card-menu {
		overflow: hidden;
		margin-right: 0px;
		margin-left: 0px;
		border-radius: 0px;
	}

	.et-content {
		display: flex;
	}

	.et-text {
		flex: 1;
	}

	.lc1 {
		height: 60px;
		line-height: 60px;
		display: flex;
	}

	.lc1-box {
		/* display: inline-table; */
		flex: 1;
	}

	.lc1-1 {
		margin-left: 10px;
		font-weight: bold;
	}

	/* 
	.arrow {
		position: absolute;
		top: 0;
		right: 16px;
		bottom: 0;
		display: block;
		margin: auto;
		width: 16px;
		height: 16px;
		color: var(--grey);
		content: "\E6A3";
		text-align: center;
		font-size: 18px;
		font-family: cuIcon;
		line-height: 16px;
	} */
</style>
